package likes

import (
	"vrcm/src/vrcm/common/models"
)

type Likes struct {
	models.Model

	TenantId   string `json:"tenant_id" gorm:"type:varchar(50);comment:租户"`
	RoundId    int    `json:"round_id" gorm:"type:varchar(50);comment:场次id"`
	BindId     int    `json:"bind_id" gorm:"type:int unsigned;comment:活动id"`
	LikeNum    int    `json:"like_num" gorm:"type:int;comment:点赞数"`
	LiveTime   int64  `json:"live_time" gorm:"type:int;comment:直播时间"`
	CreateTime int64  `json:"create_time" gorm:"type:int;comment:创建时间"`
	UpdateTime int64  `json:"update_ime" gorm:"type:int;comment:更新时间"`
	models.ControlBy
}

func (Likes) TableName() string {
	return "likes"
}

func (e *Likes) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *Likes) GetId() interface{} {
	return e.Id
}
